package forms


import (
"LiquidMeasurement/lib"
)
type BedManageForm struct {
	Id          	uint64
	BedNum			string		`valid:"Required;Msg(床号不能为空)"`
	Room			uint64		`valid:"Required;Msg(房间不能为空)"`
	Department		uint64		`valid:"Required;Msg(部门不能为空)"`
}


func (form *BedManageForm)CheckValid()(b bool,Errors []lib.ERROR)  {
	valid := lib.Validation{}
	b, err_msg := valid.Valid(form)
	return b,err_msg
}


